<%@ page language="java"  pageEncoding="UTF-8"%>
<%@include file="/common/jsp/cssAndScript.jsp"%>
<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/security" prefix="si" %>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>鼎烜电力集团备货单</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script src="${pageContext.request.contextPath}/common/js/My97DatePicker/WdatePicker.js"></script>
	</head>
	<body>
	
	<div id="pop_up_content" style="background-color: #FFFFFF;">
			<div class="pop_up_title images_1">
					备货清单
			</div>
			<div class="pop_up_body">
				<form id="thisForm" action="<%=basePath%>goodsOrder/goodsOrderAction!editGoodsOrder.action" method="post">
					<input type="hidden" value="<s:property value='form.id'/>" name="form.id"/>
					<input type="hidden" value="1" name="form.orderType"/>
					<input type="hidden" value="<s:property value='id'/>" name="form.contractId"/>
					<table width="700px" border="1" align="center" width="100" cellspacing="0" cellpadding="0" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF" height="100">  
						<tr>
							<td align="center">
								<font size="4">需求单位</font>
							</td>
							<td align="center">
								<font size="4">供货商</font>
							</td>
						</tr>
						<tr> 
							<td style="border-bottom-width: 0px;"> 
								<table width="100%" style="height: 100%;border-top-width:0px;border-bottom-width:0px;" border="1"   width="100"   cellspacing="0"   cellpadding="0"   bordercolor="#000000"   bordercolorlight="#000000"   bordercolordark="#FFFFFF"   height="100" frame="hsides">
									<tr>
										<td class="form_input_value">
										
											名称&nbsp;
										</td>
										
										<td colspan="2" >
											&nbsp;
											<s:property  value="goodsOrderWrapper.reqCustomerName"/>
										</td>
									</tr>
									<tr>
										<td class="form_input_value" >
											地址&nbsp;
										</td>
										<td colspan="2" >
											&nbsp;<s:property value="goodsOrderWrapper.reqAddress"/>
										</td>
									</tr>
									<tr>
										<td class="form_input_value" >
											联系人&nbsp;
										</td>
										<td colspan="2" >
											&nbsp;<s:property value="goodsOrderWrapper.reqLinkMan"/>
										</td>
									</tr>
									<tr>
										<td class="form_input_value" >
											电话&nbsp;
										</td>
										<td colspan="2" >
											&nbsp;<s:property value="goodsOrderWrapper.reqLinkManMode"/>
										</td>
									</tr>
								</table>
							</td>
							<td style="border-bottom-width: 0px;">
								<table width="100%" style="height:100%;border-top-width: 0px;border-bottom-width: 0px;" border="1" cellspacing="0" cellpadding="0" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF" height="100" frame="hsides">
									<tr>
										<td class="form_input_value" >
											名称&nbsp;
										</td>
										<td colspan="2" >
											&nbsp;<s:property value="goodsOrderWrapper.customerName"/>
										</td>
									</tr>
									<tr>
										<td class="form_input_value" >
											地址&nbsp;
										</td>
										<td colspan="2" >
											&nbsp;<s:property value="goodsOrderWrapper.address"/>
										</td>
									</tr>
									<tr>
										<td class="form_input_value" >
											联系人&nbsp;
										</td>
										<td colspan="2" >
											&nbsp;<s:property value="goodsOrderWrapper.linkMan"/>
										</td>
									</tr>
									<tr>
										<td class="form_input_value" >
											电话&nbsp;
										</td>
										<td colspan="2" >
											&nbsp;<s:property value="goodsOrderWrapper.linkManMode"/>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="left" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							
							付款方式：<s:property value="goodsOrderWrapper.payType"/>
							</td>
						</tr>
						<tr>
							<td align="left" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							付款金额：<s:property value="goodsOrderWrapper.payMoney"/>
							</td>
						</tr>
						<tr>
							<td colspan="2" align="center"><font size="3">产品清单</font></td>
						</tr>
						<tr>
							<td colspan="2" align="center"  style="border-bottom-width: 0px;">
								<table width="700px;"  style="height: 100%;border-top-width:0px;border-bottom-width:0px;" border="1"   width="100"   cellspacing="0"   cellpadding="0"   bordercolor="#000000"   bordercolorlight="#000000"   bordercolordark="#FFFFFF"   height="100" frame="hsides">
									<tr>
											<td width="10%" align="center" >序号</td>
											<td width="25%" align="center" >名称</td>
											<td width="25%" align="center" >型号</td>
											<td width="10%" align="center" >单位</td>
											<td width="10%" align="center" >数量</td>
											<td width="10%" align="center" >单价</td>
											<td width="10%" align="center">总价</td>
									</tr>
										<s:if test="wrapperList!=null && wrapperList.size()>0">
											<s:iterator id="wrapperList" value="wrapperList" status="status">
												<tr >
													<td width="10%" align="center"><s:property value="#status.count"/></td>
													<td width="25%" align="center"><s:property value="productName"/></td>
													<td width="25%" align="center"><s:property value="model"/></td>
													<td width="10%" align="center"><s:property value="productUnit"/></td>
													<td width="10%" align="right" ><s:property value="countNum"/></td>
													<td width="10%" align="right"><s:property value="unitPrice"/></td>
													<td width="10%" align="right"><s:property value="totalprice"/></td>
												</tr>
											</s:iterator>
										</s:if>
										<s:else>
											<tr>
												<td align="center" colspan="7">
													无记录
												</td>
											</tr>
										</s:else>
								</table>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<table width="700px">
									<tr>
										<td class="form_input_value" width="20%">
											日期：
										</td>
										<td width="15%">
											<s:property value="goodsOrderWrapper.orderTime"/>
										</td>
										<td class="form_input_value" width="15%">
											备货人：
										</td>
										<td width="15%">
											<s:property value="goodsOrderWrapper.writeUser"/>
										</td>
										<td class="form_input_value" width="15%">
											审批人：
										</td>
										<td width="15%">
											<s:property value="goodsOrderWrapper.applyMan"/>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
		
	</body>
</html>